<?php Yii::app()->clientScript->registerScriptFile('js/app/jobscenter.js', CClientScript::POS_END); ?>
<div id="left-col">
    <div class="container" style="min-height: 206px;">   
        <br/>
         <div class="inside" style="padding-top:0px; padding-bottom:0px;">        
        <h5 style="padding-left:11px;">Available Actions</h5>
        
        <ul class="links" style="margin-left:0px !important;">
            <li id='blankforvalidation2' style="display:none">&nbsp;</li>            
            <li><?php //echo CHtml::link('Print Job List',array('jobreport'),array('target'=>"_blank")); ?></li>
        </ul>
    </div>
</div>
</div>
<div id="right-col">

    <div class="wrap">
        <div class="container">


            <div id="breadcrumb" style="display:none;"><span style="padding-left:10px;font-size:10px;color:#777777;" id="alsoviewing"></span></div>
            <div class="inside">
                <h1>Jobs Center</h1>

                <div id="profileheader" style="clear: both; ">
                    <table border="0" cellpadding="10" cellspacing="10">
                        <tbody><tr>

                                <td valign="top" style="padding-right: 25px;">



                                    <div id="profile-header-balance" class="profile-header-item">
                                        <br/>

                                        
                                        <table width="250">
                                            <tr>
                                                <th colspan="2"> <h4>Job Status</h4></th>
                                            </tr>
                                            <?php $totalByJobStatus = 0;?>
                                            <?php foreach(JobsStatus::getJobStatusListAndCount() as $status=>$count):?>
                                            <?php $totalByJobStatus+=$count; ?>
                                            <tr>
                                                <td><?php echo $status; ?></td>
                                                <td style="text-align: right;"><?php echo $count; ?></td>

                                            </tr>
                                            <?php endforeach;?>
                                            <tr><td>&nbsp;</td><td></td></tr>
                                            <tr>
                                                <td><b>Total Jobs</b></td>
                                                <td style="text-align: right;"><?php echo $totalByJobStatus; ?></td>
                                            </tr>
                                        </table>


                                        
                                    </div>
                                    

                                </td>
                            <td valign="top">

                                <div id="profile-header-balance" class="profile-header-item">
                                    <br/>

                                    <table width="250">
                                    <tr>
                                        <th colspan="2"> <h4>Job Billing Status</h4></th>
                                    </tr>
                                    <?php $totalByBillingStatus = 0; ?>
                                    <?php foreach(JobsBillingStatus::getStatusListAndCount() as $status=>$count):?>
                                    <?php $totalByBillingStatus+=$count; ?>
                                    <tr>
                                        <td>&nbsp;<?php echo $status; ?></td>
                                        <td style="text-align: right;"><?php echo $count; ?></td>

                                    </tr>
                                    <?php endforeach;?>
                                    <tr><td>&nbsp;</td><td></td></tr>
                                    <tr><td>&nbsp;</td><td></td></tr>
                                    <tr><td>&nbsp;</td><td></td></tr>
                                    <tr><td>&nbsp;</td><td></td></tr>
                                    <tr>
                                        <td></td>
                                        <td style="text-align: right;"><?php echo $totalByBillingStatus; ?></td>
                                    </tr>
                                </table>
                            </td>
                            </tr>
                        </tbody></table>
                </div>
                <br/>
                <label>Job Status</label>
                <?php echo CHtml::dropDownList('status', '', JobsStatus::getListData()); ?>
                <label>Job Billing Status</label>
                
                <?php 
                $data = (array(0=>'All') + JobsBillingStatus::getListData());
                echo CHtml::dropDownList('bstatus', '',$data); ?>
                <br/>
                <br/>
                <div id="job-list">

                </div>

            </div><!-- inside -->
        </div><!-- container -->
    </div><!-- wrap -->
    <?php $this->renderPartial('/copyright'); ?>
</div> <!-- left-col -->
